.class public Lcom/kwad/sdk/core/h/c;
.super Ljava/lang/Object;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/kwad/sdk/core/h/c$a;,
        Lcom/kwad/sdk/core/h/c$b;
    }
.end annotation


# static fields
.field private static a:Z = false

.field private static b:Landroid/os/HandlerThread; = null

.field private static c:Landroid/os/Handler; = null

.field private static volatile d:Z = false

.field private static volatile e:J = 0xe10L

.field private static f:Landroid/content/Context;

.field private static g:Lcom/kwad/sdk/core/h/c$a;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method static synthetic a(J)J
    .locals 0

    sput-wide p0, Lcom/kwad/sdk/core/h/c;->e:J

    return-wide p0
.end method

.method public static a()V
    .locals 2

    const-string v0, "ConfigRequestManager"

    const-string v1, "load()"

    invoke-static {v0, v1}, Lcom/kwad/sdk/core/d/b;->a(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lcom/kwad/sdk/core/h/c$1;

    invoke-direct {v0}, Lcom/kwad/sdk/core/h/c$1;-><init>()V

    new-instance v1, Lcom/kwad/sdk/core/h/c$2;

    invoke-direct {v1}, Lcom/kwad/sdk/core/h/c$2;-><init>()V

    invoke-virtual {v0, v1}, Lcom/kwad/sdk/core/network/h;->a(Lcom/kwad/sdk/core/network/g;)V

    return-void
.end method

.method public static declared-synchronized a(Landroid/content/Context;Lcom/kwad/sdk/core/h/c$a;)V
    .locals 2

    const-class v0, Lcom/kwad/sdk/core/h/c;

    monitor-enter v0

    :try_start_0
    sget-boolean v1, Lcom/kwad/sdk/core/h/c;->d:Z

    if-nez v1, :cond_0

    sput-object p0, Lcom/kwad/sdk/core/h/c;->f:Landroid/content/Context;

    new-instance p0, Landroid/os/HandlerThread;

    const-string v1, "ksadsdk-config-request"

    invoke-direct {p0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V

    sput-object p0, Lcom/kwad/sdk/core/h/c;->b:Landroid/os/HandlerThread;

    invoke-virtual {p0}, Landroid/os/HandlerThread;->start()V

    new-instance p0, Landroid/os/Handler;

    sget-object v1, Lcom/kwad/sdk/core/h/c;->b:Landroid/os/HandlerThread;

    invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;

    move-result-object v1

    invoke-direct {p0, v1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    sput-object p0, Lcom/kwad/sdk/core/h/c;->c:Landroid/os/Handler;

    const/4 p0, 0x1

    sput-boolean p0, Lcom/kwad/sdk/core/h/c;->d:Z

    :cond_0
    sput-object p1, Lcom/kwad/sdk/core/h/c;->g:Lcom/kwad/sdk/core/h/c$a;

    const-wide/16 p0, 0x0

    invoke-static {p0, p1}, Lcom/kwad/sdk/core/h/c;->c(J)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method static synthetic a(Z)Z
    .locals 0

    sput-boolean p0, Lcom/kwad/sdk/core/h/c;->a:Z

    return p0
.end method

.method static synthetic b()Landroid/content/Context;
    .locals 1

    sget-object v0, Lcom/kwad/sdk/core/h/c;->f:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic b(J)V
    .locals 0

    invoke-static {p0, p1}, Lcom/kwad/sdk/core/h/c;->c(J)V

    return-void
.end method

.method static synthetic c()Lcom/kwad/sdk/core/h/c$a;
    .locals 1

    sget-object v0, Lcom/kwad/sdk/core/h/c;->g:Lcom/kwad/sdk/core/h/c$a;

    return-object v0
.end method

.method private static c(J)V
    .locals 4

    sget-object v0, Lcom/kwad/sdk/core/h/c;->c:Landroid/os/Handler;

    const v1, 0x1010112

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    sget-object v0, Lcom/kwad/sdk/core/h/c;->c:Landroid/os/Handler;

    new-instance v2, Lcom/kwad/sdk/core/h/c$b;

    invoke-direct {v2}, Lcom/kwad/sdk/core/h/c$b;-><init>()V

    invoke-static {v0, v2}, Landroid/os/Message;->obtain(Landroid/os/Handler;Ljava/lang/Runnable;)Landroid/os/Message;

    move-result-object v0

    iput v1, v0, Landroid/os/Message;->what:I

    sget-object v1, Lcom/kwad/sdk/core/h/c;->c:Landroid/os/Handler;

    const-wide/16 v2, 0x3e8

    mul-long p0, p0, v2

    invoke-virtual {v1, v0, p0, p1}, Landroid/os/Handler;->sendMessageDelayed(Landroid/os/Message;J)Z

    return-void
.end method

.method static synthetic d()Z
    .locals 1

    sget-boolean v0, Lcom/kwad/sdk/core/h/c;->a:Z

    return v0
.end method

.method static synthetic e()J
    .locals 2

    sget-wide v0, Lcom/kwad/sdk/core/h/c;->e:J

    return-wide v0
.end method
